package com.crm.model.entity.activityManager;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomerProductActivityRelationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerProductActivityRelationExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProductActivityRelationIdIsNull() {
            addCriterion("product_activity_relation_id is null");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdIsNotNull() {
            addCriterion("product_activity_relation_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdEqualTo(String value) {
            addCriterion("product_activity_relation_id =", value, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdNotEqualTo(String value) {
            addCriterion("product_activity_relation_id <>", value, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdGreaterThan(String value) {
            addCriterion("product_activity_relation_id >", value, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdGreaterThanOrEqualTo(String value) {
            addCriterion("product_activity_relation_id >=", value, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdLessThan(String value) {
            addCriterion("product_activity_relation_id <", value, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdLessThanOrEqualTo(String value) {
            addCriterion("product_activity_relation_id <=", value, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdLike(String value) {
            addCriterion("product_activity_relation_id like", value, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdNotLike(String value) {
            addCriterion("product_activity_relation_id not like", value, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdIn(List<String> values) {
            addCriterion("product_activity_relation_id in", values, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdNotIn(List<String> values) {
            addCriterion("product_activity_relation_id not in", values, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdBetween(String value1, String value2) {
            addCriterion("product_activity_relation_id between", value1, value2, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andProductActivityRelationIdNotBetween(String value1, String value2) {
            addCriterion("product_activity_relation_id not between", value1, value2, "productActivityRelationId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdIsNull() {
            addCriterion("customer_product_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdIsNotNull() {
            addCriterion("customer_product_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdEqualTo(String value) {
            addCriterion("customer_product_id =", value, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdNotEqualTo(String value) {
            addCriterion("customer_product_id <>", value, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdGreaterThan(String value) {
            addCriterion("customer_product_id >", value, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdGreaterThanOrEqualTo(String value) {
            addCriterion("customer_product_id >=", value, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdLessThan(String value) {
            addCriterion("customer_product_id <", value, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdLessThanOrEqualTo(String value) {
            addCriterion("customer_product_id <=", value, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdLike(String value) {
            addCriterion("customer_product_id like", value, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdNotLike(String value) {
            addCriterion("customer_product_id not like", value, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdIn(List<String> values) {
            addCriterion("customer_product_id in", values, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdNotIn(List<String> values) {
            addCriterion("customer_product_id not in", values, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdBetween(String value1, String value2) {
            addCriterion("customer_product_id between", value1, value2, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andCustomerProductIdNotBetween(String value1, String value2) {
            addCriterion("customer_product_id not between", value1, value2, "customerProductId");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesIsNull() {
            addCriterion("product_categories is null");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesIsNotNull() {
            addCriterion("product_categories is not null");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesEqualTo(String value) {
            addCriterion("product_categories =", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesNotEqualTo(String value) {
            addCriterion("product_categories <>", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesGreaterThan(String value) {
            addCriterion("product_categories >", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesGreaterThanOrEqualTo(String value) {
            addCriterion("product_categories >=", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesLessThan(String value) {
            addCriterion("product_categories <", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesLessThanOrEqualTo(String value) {
            addCriterion("product_categories <=", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesLike(String value) {
            addCriterion("product_categories like", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesNotLike(String value) {
            addCriterion("product_categories not like", value, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesIn(List<String> values) {
            addCriterion("product_categories in", values, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesNotIn(List<String> values) {
            addCriterion("product_categories not in", values, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesBetween(String value1, String value2) {
            addCriterion("product_categories between", value1, value2, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductCategoriesNotBetween(String value1, String value2) {
            addCriterion("product_categories not between", value1, value2, "productCategories");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceIsNull() {
            addCriterion("product_final_price is null");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceIsNotNull() {
            addCriterion("product_final_price is not null");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceEqualTo(BigDecimal value) {
            addCriterion("product_final_price =", value, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceNotEqualTo(BigDecimal value) {
            addCriterion("product_final_price <>", value, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceGreaterThan(BigDecimal value) {
            addCriterion("product_final_price >", value, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("product_final_price >=", value, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceLessThan(BigDecimal value) {
            addCriterion("product_final_price <", value, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("product_final_price <=", value, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceIn(List<BigDecimal> values) {
            addCriterion("product_final_price in", values, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceNotIn(List<BigDecimal> values) {
            addCriterion("product_final_price not in", values, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("product_final_price between", value1, value2, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductFinalPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("product_final_price not between", value1, value2, "productFinalPrice");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdIsNull() {
            addCriterion("product_activity_id is null");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdIsNotNull() {
            addCriterion("product_activity_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdEqualTo(String value) {
            addCriterion("product_activity_id =", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdNotEqualTo(String value) {
            addCriterion("product_activity_id <>", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdGreaterThan(String value) {
            addCriterion("product_activity_id >", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdGreaterThanOrEqualTo(String value) {
            addCriterion("product_activity_id >=", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdLessThan(String value) {
            addCriterion("product_activity_id <", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdLessThanOrEqualTo(String value) {
            addCriterion("product_activity_id <=", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdLike(String value) {
            addCriterion("product_activity_id like", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdNotLike(String value) {
            addCriterion("product_activity_id not like", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdIn(List<String> values) {
            addCriterion("product_activity_id in", values, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdNotIn(List<String> values) {
            addCriterion("product_activity_id not in", values, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdBetween(String value1, String value2) {
            addCriterion("product_activity_id between", value1, value2, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdNotBetween(String value1, String value2) {
            addCriterion("product_activity_id not between", value1, value2, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNull() {
            addCriterion("create_people_id is null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNotNull() {
            addCriterion("create_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdEqualTo(String value) {
            addCriterion("create_people_id =", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotEqualTo(String value) {
            addCriterion("create_people_id <>", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThan(String value) {
            addCriterion("create_people_id >", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_people_id >=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThan(String value) {
            addCriterion("create_people_id <", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("create_people_id <=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLike(String value) {
            addCriterion("create_people_id like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotLike(String value) {
            addCriterion("create_people_id not like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIn(List<String> values) {
            addCriterion("create_people_id in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotIn(List<String> values) {
            addCriterion("create_people_id not in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdBetween(String value1, String value2) {
            addCriterion("create_people_id between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("create_people_id not between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}